package java2020spring;

import java.awt.*;
import javax.swing.*;

public class HelpWindow extends JFrame{
	String []str={"运算功能键: 加、减、乘、除键在计算时都可能代替等号键","sqrt: 开平方运算,输入数字，按下此键再按等号键即可得出结果","back: 执行退格操作，若处于个位数，则退为0","+/-: 相反数操作","进制转换: 先输入数字，再按相应进制来进行转换"};
	JPanel panel3;
	HelpWindow(){
		setTitle("帮助文档");
		this.setLayout(new BorderLayout());
		this.setTitle("帮助文档");
		this.setBounds(300, 100, 400, 400);
		this.setResizable(false);
		panel3=new JPanel();
		add(panel3);
		for(int i=0;i<str.length;i++){
			JTextField text=new JTextField(str[i]);
			panel3.add(text);
			text.setFont(new Font("Courir",Font.PLAIN,14));
			text.setEditable(false);
		}
		
		this.setVisible(true);
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
	
	}

}
